-
Notifications
You must be signed in to change notification settings - Fork 9
/
Song.swift
42 lines (29 loc) · 945 Bytes
/
Song.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// Song.swift
// Chord Provider
//
// © 2024 Nick Berendsen
//
import SwiftUI
import SwiftlyChordUtilities
/// The structure of a song as shown in **Chord Provider**
struct Song {
/// The ID of the song
var id: UUID = UUID()
// MARK: Display options
/// The display options for the ``Song``
var displayOptions = DisplayOptions()
// MARK: Meta data directives
/// The meta data about the ``Song``
var metaData = MetaData()
// MARK: Meta data directives that are defined
/// An array of defined directives that only should be set once
/// - Note: Used in the directive menus to disable *once only* directives
var definedMetaData: [ChordPro.Directive] = []
// MARK: All the sections in the song
/// The sections of the song
var sections = [Song.Section]()
// MARK: All the chords in the song
/// The chords of the song
var chords: [ChordDefinition] = []
}